package com.hgyc.mom.eam.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.hgyc.mom.common.annotation.Excel;
import com.hgyc.mom.core.mybatis.EQ;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 设备维修附件
 * </p>
 *
 * @author fwj
 * @since 2025-08-19
 */
@Data
@TableName("eam_equipment_repair_attachment")
@Schema(name="设备维修附件对象", description="设备维修附件对象")
public class EamEquipmentRepairAttachment implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "附件ID")
    private Long id;

    @EQ
    @Schema(description = "维修单ID")
    private Long repairId;

    @Excel(name = "文件地址")
    @Schema(description = "文件地址")
    private String fileUrl;

    @Excel(name = "文件名")
    @Schema(description = "文件名")
    private String fileName;

    @Excel(name = "文件类型")
    @Schema(description = "文件类型")
    private String fileType;

    @Excel(name = "文件大小")
    @Schema(description = "文件大小")
    private BigDecimal fileSize;

    @Excel(name = "备注")
    @Schema(description = "备注")
    private String remark;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建者")
    private Long createBy;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新者")
    private Long updateBy;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

}
